/*
 * @Author: xiaoyan
 * @Date: 2021-11-19 14:14:47
 * @LastEditors: xiaoyan
 * @LastEditTime: 2022-01-20 15:00:47
 * @Description: 
 * @FilePath: \user_auth_front\src\store\index.ts
 */
import { createStore, applyMiddleware, combineReducers } from 'redux';
import thunk from 'redux-thunk'
import logger from 'redux-logger';
import app from './modules/app';
import user from './modules/user';
import dictionary from './modules/dictionary';
import share from './modules/share';

const reducer = combineReducers({
    app,
    user,
    dictionary,
    share,
});

const store = createStore(reducer,applyMiddleware(thunk,logger));

export default store;